Fixed bug when getting Group id in Login API