fixing validation on ddl