updated validation pattern