Add angularfire
Update onSearchSuccess

Only call $scope.toggleError() if $scope.error is true