validation for add to notebook