Added validation check html and rtf