add unique index validation