Fix the password matching and updating for logins