Fixed login/logout display condition