Can we avoid re-defining this regex here? The validation plugin already defines it, and we might be able to just re-use that.