fix some login bug