When was Lincoln elected?