added boolean validator