Checking user invitation and saving it when invited