fix bad code smell in routes
fix bad code smell in validators