test if logged in