Modified UserdefNumber class to validate the number value against
range specified in Userdef object.