add validate subcommand