使用带有codeigniter的模块进行路由

I'm working with HMVC with wiredesignz plugin and have the following url mysite.com/login and it views my login form. I have the form to post to the submit method in the login controller inside of the user module. I'm trying to figure out what the route would be for this to work because inside of the submit method I have it echoing a string for testing purposes. The first route works beautifully but the second route presents a 404 Page not found. Any thoughts on how to correct this.

$route['login'] = 'user/login';
$route['login/submit'] = 'user/login/submit';

I was able to fix my issue by noticing that my submit function was named as a private function and not listed as public.

Try this one

$route['login/(:any)'] = 'user/login/$1';
$route['login'] = 'user/login';

or try to change the action of form to submit

$route['submit'] = 'user/login/submit';
$route['login'] = 'user/login';