- add debug logging support
- add more detail to login errors