I am not sure I agree about moving it to the end, but totally acknowledge something is off and by default we should do a better job.
We could automatically detect people entered the password in a non password field and stop all progress till they amend it.