fix not-logged-in state