Validation for number and date