enable and disable appropriate buttons on login/logout