Log successfull login/logout attempts.
Finally fix the encoding problems.