improved some login stuff