made batch_id validation more precisely dependent on !batch_id.blank instead of batch_id