added example for command validation