Fixed validation on input for non-number strings