added functionality to reset password