removed variable name typo in validatesAfter