Improved form submission