modify editor validation