Refactored validation functions into concrete.validate library
Added test suite.