Logging username bug fixed.