fixed: new users invited for an autojoin group are not a member of the
group after registration

and code cleanup