Attribute data validator implemented for BooleanAttribute to check if data are of boolean type.