Add validation to datatable fields