Some validator for models