fix invite authentication