added validations for models