command validation