The modal is rendered dynamically to avoid password managers inserting passwords into the input field too aggressively. Fixes #12523.