Add isLoggedIn and isNotLoggedIn