fix authentication after reset password