Remove create invitation endpoint and fixed accept invitation