if validation fails for a given element in an array, move on to the next when clause