All the JavaScript code is unnecessary, as well as the `id` on the `input`. A solution should be purely serverside.