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

RT