add validation at time of barData