implement validate using CommandInterface