Bug fix for login at index page. Fix #22.
Merge pull request #23 from huxuan/master

Bug fix for login at index page. Fix #22.