validate unit name is unique