set loggedIn only if not set