Added validator for boolean