added simple before & after validator