first implementation of login service