Close login window once logged in