d";
    submit.value = isValid ? submit.getAttribute("data-default-text") : submit.getAttribute("data-invalid-text");
		submit.disabled = !isValid;
		submit.className = isValid ? "submit" : "disabled";
    
    return isValid;
  }

  function emailErrorMessage(input, allDivs) {
    input.className = "required invalid";
    input.placeholder = input.getAttribute("data-required-message") || "This field is required";
  }

  function fieldErrorMessage(input, allDivs) {
    input.className = "required invalid";
