Improved validator for one number.