Rewrite validation