fix some login stuff