<form id="custom-validate-form" action="mail.php" method="POST" class="needs-validation"
submitButton.addEventListener('click', (e) => {