add checking by regex