fixed login bug and added verbosity

- fixed typo causing password error
- added connection verification
- added some verbosity to the template (connection error, empty torrent list)
- added debug logging for connection errors