index validation