corrected the resetpassword method definition