);
            return;
        }
        flashForm.addEventListener('submit', async function(event) {
            if (!flashForm.checkValidity()) {
                event.preventDefault();
                [...flashForm.elements].map(function(e){return e.parentNode}).forEach(function(e){e.classList.toggle('was-validated', true)});
            } else {
                event.preventDefault();
                [...flashForm.elements].map(function(e){return e.parentNode}).forEach(function(e){e.classList.toggle('wa