updated condition where input name matches regex