fixed some login stuff