added validation class to lib