added validation to the schemas