fix checking for password change