Support for validating length against a property on the model

Sorry about all the mess. Should look alright now, hopefully.