Refactor login controller.
Improve menu and connection error alert.
Fix UI after android tests.