Fixed some login quirks