add some validations