call CleanupAuthenicationResources after check group

Signed-off-by: abbr <wenfred@gmail.com>