Connectivity

Added error checking to make sure that users have live internet connectivity whenever there are requests to the API