Implemented reset password functionality