Add `pattern="[\w\-\.]+"` to the `<input>`

Note that `type=text` is the implied default for `<input>`; it’s not needed.