Fix the CommandException path used in ValidateInput