Password reset: Implemented the resetPassword API (without the password reset page).