logged out and logged in state