Forbid to register a device with invalid name.