Add attr param to custom validator, closes #200
0.2.0-17