Fixed validation for postCommand.