Fixed user managemnet so login / logout remembers and forgets username correctly.