handled NaN for number validator