Draft: Fix issues & refactor authentication.backends highlighted by pylint
- Fix bug in authentication backend, where error messages to users could never be shown
- Change log messages to use lazy string interpolation
- Refactor to remove unnecessary code (e.g. else)
- Other fixes suggested by pylint