Adding validation for boolean