Fixed password reset functionality