Add `button.addEventListener('click', submitForm);`