Regex check now respects a non-required field. Updated sample to test this.