better loggedinedness check (bug 1075228)