add a second check of the routes params in the controller