ENH: component name validation
Merge pull request #422 from piwaniuk/validators

Validator for component name