Fixed login bugs
Merge pull request #19 from karthiksenthil/master

Fixed login bugs