set mandatory validation on index field