add command object validation