lementById("password").value;
            const nhpValidUrl = "/plugins/example?resid=demo&action=valid" + 
            "&username=" + encodeURIComponent(user) + 
            "&password=" + encodeURIComponent(password);
            console.log(nhpValidUrl);

            fetch(nhpValidUrl,{
                credentials: "include"
            })
            .then(response => response.json())
            .then(result => {
                console.log(result);
                const lang = document.getElementById(