added some validations: