added checks to prevent missing index errors when signing up via Facebook