added support for constraints that go from input fields to the model