Hide login window when logging in and only show it again if there's an error