ind("input[type=text]:not(#identityProvider)").val("");
          form.find("textarea#userRoles").val(defaultRoles.join("\n"));
          form.find("textarea#claims").val(defaultClaims);
          form.find("#userId").val(generateUserId());
          form.find("input, textarea").each((idx, element) => $(element).saveToLocalStorage());
        });

        // store cookie info as base64
        form.submit(() => {
          event.preventDefault();
          saveCookie(form);
          redirectToApp();
      