Updated header login section display conditions