Add boolean validation

As approved in #4411