how can I validate data against a table?