fixes to form submission