Fixed a lot of stuff in login view controller.