Fix password reset bug