Login now looks for internet connection before attempting to login.
Merge remote-tracking branch 'origin/new-dev' into new-dev