Problems with file upload and form submission