invalid reverse mode check in HomeController