Added login/logout display logic.