made isLoggedIn static