Working on login/out functionality in View/Ctrl