Bug fix to login service.