fixed minor login bug
 fixed test for this commit
Merge pull request #32 from eugenefilimonov/eugenes_branch

fixed minor login bug