added regex validator