Fixed some login bugs and setup the basics of the user profile page.