Fix form submission issues