adds var declaration to validator