(the event you want to use is `submit`, and it must be added on the `form` element, not the submit button)