fix validation for numeric input