added validation framework.