hide loginName in top bar on login screen, close menu when clicking outside