validation now works for batches