added validation for uniqueness on words