That should be an easy fix.
Open Regedit,
Go to HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList key
You will get similar keys under “profile list”, however one key may end with a “.bak”. This key is your original profile one. Example: "SID-1213428093-345618312-2235-148770.bak". The one without ".bak" is your current temp profile key (which currently logged on) Example: "SID-1213428093-345618312-2235-148770"
Rename the without ".bak" key, by adding a ".temp" suffix at the end. Ex : "SID-1213428093-345618312-2235-148770″ => "SID-1213428093-345618312-2235-148770.temp″
Remove ".bak" from the other key. Ex : "SID-1213428093-345618312-2235-148770.bak" => "SID-1213428093-345618312-2235-148770"
Then, log off and restart the computer. This time, it should log on to the right profile. If not, then it may definitely be corruped and need to be rebuilt.