Fixed infinite login retries if no connection

It's supposed to try twice if there's no connection and then show the text boxes and error crouton