Add helpful error message in rule validation.