implemented basic login service