enhanced EnsureAuthenticated.