Fix: [ bug #1775 ] New lines can be entered after contract validation

Fix: [ bug #1775 ] New lines can be entered after contract validation