added haserror function that scans $scope.container.data('error') for keys that return true

this disables the save button if true