Fix some login setting problems