added validations to some models