who did lincoln defeat in election?