added validation for single file upload