added invalid route and logic