fixed some login out issues