HTML-501 - beforeValidation doesn't work