Changed the run function to reopen the login page.