Updated how restarting on failure to login works.