added some validations
schema