Finish user login and logout.
Fixed Application Controller.