Id('password');
      const passwordConfirmation = document.getElementById('password_confirmation');

      // Check if passwords match
      if (password.value !== passwordConfirmation.value) {
        passwordConfirmation.setCustomValidity('Passwords do not match');
      } else {
        passwordConfirmation.setCustomValidity('');
      }
    }

    passwords.forEach((password) => {
      password.addEventListener('input', () => {
        isValidPassword();
      });
    });
  </script>
{% endblock main 