Use default mainWindow for login to try fix failing unit test