Efficient and extendable PHP form validation class.