Onlyif validator

closes #17