Fixed login / logout.