added a check to the authentication service to make sure there is an
internet connection before attempting login and also added using a
shared preference to indicate a first time application launch.