added resetPassword method