Changed LoginController and unit test for LoginController.
Changed pages chain in login procedure.
Some cosmetic changes.