change config details to match readme, delete beforeValidation method