When the computer reports 'logging off' after logging on, does it just return to the login screen or does it restart? If you leave it alone, does it just run in an endless loop of login/logoff?
If you have the windows disk, you can boot to the DVD and choose windows repair and follow the startup repair prompts.