Login - Screen Flashes and Returns to Login Screen - Tried Everything Possible I have an absurd issue which pretty much nothing seems to be able to fix - 

I have a 2011 Macbook Pro running Mavericks. 
When I try logging into my main account with the correct password, the wheel starts spinning, but then the screen acquires a blue tint, flashes, and then returns back to the login screen, asking me to enter my password again.

I created another Admin account which seems to login perfectly. In fact, I am unable to login even through Safe Mode...

I tried the following things - 


Removing the password - this resulted in a login loop
Resetting PRAM
Reinstalling Mavericks
Rebuilding the user account
Removing the LaunchServices files 
Removing the cache files


I tried literally everything but nothing seems to work!!! 

This problem happened right after I was trying to connect my Macbook to an external monitor.. It wouldn't show the screen so I kept inserting and removing the cable.. 

Please feel free to be as technical as you want. I'm a CS major :)
There is one troubleshooting step that OS X shares with the classic Mac OS, removing preference files. But on OS X there are TWO folders:

/Library/Preferences and ~/Library/Preferences

--The latter being in your user/home folder--

Since the issue doesn't exist under another logon it is specific to that user folder. SO there is something specific to that user that is causing the problem. This takes the /Library/Preferences folder out of consideration for troubleshooting preferences. The first thing I would do is use a utility like Onyx to verify and clean the system. This includes verifying preferences files. After that rename the ~/Library/Preferences folder to something like 

~/Library/Preferences-old

You'll probably have to do that in Terminal and use sudo as those files are owned by another user on the system. then create a new ~/Library/Preferences folder and reboot.

If you can now log into that account it is a simple (HAH!) matter of putting preferences files in the new Preferences folder and rebooting till you find which one it is.

No guarantee, though, that it is a preference file, it could be a startup item. So do the same thing with the ~/Library/LaunchAgents folder.

The other thing to consider is that it might be easier to just create a new user folder. Copy the things you need out of the old user folder and delete the old user. That could save you a lot of troubleshooting time. It would be my preferred way of doing it (after running Onyx) as I care less about what happened than just finding a fix that gets me up and running more quickly.