working on table content validate function