Fixed some login issues.