move login logic inside login service
Merge pull request #20 from Avricot/master

move login logic inside login service