added validation constraint for unique indexes