fix validator for runtime and webserver