More logging, fixed username being remembered