Thread moved to General Help.
Boot Ubuntu to the login screen (or choose 'Recovery kernel' at boot and drop to a shell as root when you get to the options screen). If you are at the login screen, hit Ctl+alt+F1. You should end up at a CLI (a big terminal) whichever way you do it.
Login (if using the ctl+alt+F1 method) and then type these three commands, one after the other, with return between. It will remove X and ICEauthority and reboot the machine (close all open apps before dropping to the CLI is best):
Can you log in now? If you have problems removing .ICEauthority, try .iceauthority. I'm pretty sure it is with the caps, though. A new Xauthority and ICEauthority will be generated on reboot.
If all this fails, try
this, replacing 'jake' with your user name.