add validations to model