Fixed some login functionality.