disconnection error redirects login to the same page. Closes #27