add patten validator