add Boolean validator (resolves #17)