The financial decisions you make in midlife can have an outsized influence on how well you live in retirement.