logout and hasUserData() added.