closing login window on result.