some login fixes