moved cui to before logging in post-auth to ensure cui value is generated before logging occurs
Merge pull request #331 from armitasp/master

moved cui in post-auth section