Track user logging in successfully

Could we move this into a file outside other than `base.html`? There is `config.html` I think, which is included on every page.