We were saving the resource after checking it was valid, but it will always return false if the model isn't valid.