disable generate_btn if editor is not validating