add validations in model class