Correct displayName undefined error for profile.displayName