First time integrated with my own server.
Support login UI
Switch login as a state with the own LoginCtrl, instead of a function in AppCtrl