Checks if table is correctly formatted.