test isLoggedIn variable