Why Does My Form Validation Not Work without an Internet Connection?