test if user logged in