Added function to add user to group.