add some validations to the RTE plugin