Implement validate command