On submit, scan all form fields and store their values.