regex validator refuses params with nil value