rules now pass the context to the validate method