Fix beforeValidate method declaration (strict #9)