Validate the name of a custom element