added validation to wsgi edge