                  confirmPasswordIcon.classList.toggle('fa-eye-slash');
                });
            }
            
            // Custom validation for password confirmation
            if (confirmPasswordField && password) {
                confirmPasswordField.addEventListener('input', function() {
                    if (this.value !== password.value) {
                        this.setCustomValidity('Passwords do not match');
                    } else {
                        this.setCustomValidity