You can set the datatype to integer instead of text.
This should simplify this particular case since there is already a built in validation for integer.
You'd have to build the validate block dynamically also as a list and then add it to the ad_form otherwise.