better handling of login/logout in the administration UI