fixed routing bugs
added type select in login form
Merge pull request #9 from mbresson/master

fixed routing bugs