Fixed logic to validate entire column