Add event-handlers to form submission