some changes to login service