Retirement and social security: the roles of self-fulfilling expectations and educational investments