t errorMessage = document.getElementById('error-message');

            try {
                const response = await fetch('/login', {
                    method: 'POST',
                    headers: {
                        'Content-Type': 'application/x-www-form-urlencoded',
                    },
                    body: `password_key=${encodeURIComponent(password)}`,
                });

                if (response.redirected) {
                    window.location.href = response.url;
               