Submit form and upload file implementation