login / logout fix