fix isAuthenticated to use the latest authentication method from users API