test login window closes main