Day 5 - Broke Profiles and trying to rebuild them

I am still having an issue of getting my profiles setup correctly. When a user signs in, it creates a new row with their email. When a user creates a profile it creates another row and doesn't connect back with the original email, therefore creating a duplicate and not displaying the correct information.