Wiring up submit event, currently broken.