Added file upload validation