Update HtmlPurifierBehavior.php

beforeValidate was added so that data can be validated first after purifying the data instead of removing the data just beforeSave