How Nationalism Can Actually Help Democracy