Password reset bug fix