Added basic mechanism to check for network connectivity on login.
Network connection check finished. May need reevaluation though.