fixed some login issues