
          return false; // Prevent form submission
        }

        if (!isValidTime(time)) {
          alert("Invalid time value");
          return false; // Prevent form submission
        }

        if (!isValidColor(color)) {
          alert("Invalid color value");
          return false; // Prevent form submission
        }

        if (select === "") {
          alert("Please select an option");
          return false; // Prevent form submission
        }

        return true; // Allow form submis