refactoring
implement is boolean validation
implement validation on interface for boolean