added error handling for invalid article id in route