TryingValidationButNotWorking

I am trying to use NaN for validation but it is not working