adding Logout controller, using $rootScope.authentication to understand if the user is logged in or not