unable to get validation to work on index