Prevent fail on empty login post.
Merge pull request #16 from sineld/master

Prevent fail on empty login post.