General validation and operation Library