How can I do my own numeric validation?