added validations in data models