        if (confirmPasswordInput.value !== passwordInput.value) {
                    document.getElementById('confirmPasswordError').innerText = 'Passwords do not match.';
                    isValid = false;
                } else {
                    document.getElementById('confirmPasswordError').innerText = '';
                }

                registerButton.disabled = !isValid;
            }
        });
    </script>
    <script>
        window.va = window.va || function () { (window.vaq = window.v