Fixed second authentication attempts

- Trying to log in after a failed attempt will no longer close the
program.