).value = event.target.value;
          });

        } catch (error) {
          console.log(error);
        }

        try {
          const response = await fetch("/api/settings", {
            cache: "no-cache",
            credentials: "include"
          });
          
          if (!response.ok) {
            throw new Error('Response not valid');
          }

          const result = await response.json();
          fillData(result);

          setupForm('#portal-settings', fillData, ['portal.login',