Added validation into IntegerBox and DoubleBox.