Datatype validation change in model_factory