Fix logging, again.
Improved user management.