Show and hide login and logout elements.