Adding a missing line of code as well as addressing FxCop warnings related to UserPrincipalName