Fix form submit functionality