he ran for congress in 1888 and was elected but failed to be reelected in 1890.

Make this proper case
He ran for Congress in 1888 and was elected but failed to be reelected in 1890.