Added metadata field to inviteUser