Fix the CommandException use path in ValidateInput