Implement resetPassword.