Validates numeric entry.