- improved the way login / logout is managed + tests