BZ-11874: chnages to complete the invitation in the server side