Add conditions for login/logout links.