Click Start, ->regedit
Now in in regidit, HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
In the navigation pane, find folder that begins with S-1-5 (SID key) followed by a long number.
Click each S-1-5 folder, locate the ProfileImagePath entry in the details pane, and then double-click to make sure that this is the user account profile that has the error.
If you have two folders (ie one is duplicate) starting with S-1-5 followed by some long numbers and one of them ended with .bak, you have to rename the .bak folder.
Ie- Right-click the folder without .bak, and then click Rename. Type .ba, and then press ENTER.
again right-click the folder that is named .bak, and then click Rename. Remove .bak at the end of the folder name, and then press ENTER.
now again right-click the folder that is named .ba, and then click Rename. Change the .ba to .bak at the end of the folder name, and then press ENTER.
Now Double-click the folder without .bak in the details pane, double-click RefCount, type 0, and then click OK.
Then Click the folder without .bak, in the details pane, double-click State, type 0, and then click OK.
Close Registry Editor and Restart