Fixed validation for route method.