Fix bug for password change