refactor Request beforeValidate