added token for invitation
working on tests