add validation of command