fix some login weirdness