Implemented navigationController and refactored user login passing user data through $scope.$emit/$scope.$on