changing login to store id instead of login after login success
change id to getId
fix #201

updating test
fix #201 updating test
fix #201 updating test due to travis ci failure
Merge pull request #202 from vesparny/master

resolve issue #201