validate if userProfile.Identities is null