This mnn lost the popular vote but still became President in 1824