Mostly working form submission with file upload