Fix login and systray state