bugfix for Master.TextEditor

bugfix and improve form input field validations.