add a position isValid and regex to filter the database and table