Adding validation for numbers.