How can I validate a field based on a database list?