add name validation to hive class