Fix some login errors