Polygon validation.