add context attribute to validators