Fixed password reset bug