There should be an option for password field for not to be filled on error. let the user type it again.