test if logged in6