or(
            "This URL is invalid.",
            "Enroll secret is invalid. Please contact your IT admin."
          );
          return;
        }

        let templateId = getTemplateIdFromPlatform(platform);

        // handle android rendering
        if (platform === "android") {
          if (!ANDROID_MDM_ENABLED) {
            renderError(
              "Android MDM is turned off.",
              "To enroll your Android device please contact your IT admin."
            );
            return;
     