Check network status when attempting login

When opening login.html, check the network status and throw alert if there is no network connection. Fixes #1