added validations

I added validations to the models