return a boolean with isAuthenticated property