Can I write my own validation code?