routing input validation