Fixed error message for the method validator.