Added a validator to the minimum and maximum fields, so that the user cannot enter a value that will cause overflow.