Thus

if (! oldLoginName.Equals(newLoginName, StringComparison.InvariantCultureIgnoreCase) // or OrdinalIgnoreCase
    && newLoginName.Length > 0
    && Member.GetMemberFromLoginName(newLoginName) != null)