Fixed general submit form

Form submit works, file upload has some issues.