Changed order of adding client to group

Just changed the order of adding a client to a group to avoid possible
non-inclusion of client in a group when another client joins when a
client is still joining.