refactor logins controller
Merge pull request #10 from malchak/master

refactor logins controller
fix merge conflicts