        window.location = '/index.html'
        }
    })

    const btn_login = document.getElementById("btn_login")
    btn_login.addEventListener("click", function () {
        let username = document.getElementById("username").value
        let password = document.getElementById("password").value

        new Promise(async resolve => {
            var res = await graphqlQuery(
                `mutation loginUser($username: String!, $password: String!) {
                     loginUser (password: $password