Added validation for route field