validates models