Encapsulate loading the user's info into a function