Tests to see if user is logged in