Handle errors when loading profile