modify validation for file upload