Login view controller and functionality.