added validations to my model