how congress elected it's president