Only treat a user as logged in if the user object has an id value - this