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