validate the table name is valid