updated group contact and logout functions