xml file upload validation and clear form