Validation for /file command