Validation

Validation for NaN or numbers not in range