Added closures to model validation so we can pass in parameters