Validate command