Auto show/hide login/logout buttons