Madlib: Created def for number validation