fixing process command validation