move login logic inside login service

Usefull when we need to login from another controller