Schema editor: Schema validation

Only valid schema can be saved.