fixed bug with invitation email link