Improved IntegerBox and DoubleBox validation