more data validation in contract editor.