Handled exception when login
Added trace number
Replaced Principal with Authentication
Populate with user agent