Adding validation to GET input on the index method (and updated the example controller accordingly)