add some validation on unique