adding a check to make sure we have an Internet connection before we try
and register a user