[changed] isAuthenticated to a boolean