Fix secure login
Merge pull request #3 from dammeheli/master

Fix secure login. Close #2