added validation  to all the models