EDIT:
when I login in tty1, bash returns an error mensage in the file /etc/profile. Ubuntu had an old copy of this file, so when I use the old copy, it works just fine. Only problem, the upper and left bars (with programs, open things, etc.) didnt show up. I'll try get these back later

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

"when I login in tty1, bash returns an error mensage in the file /etc/profile" What is the complete and exact text of that error message, and do you have any reason to think this error is related to your inability to log in graphically? (I suppose it could be--with most desktop environments, ~/.profile does get sourced on graphical login.) When you use the backup of .profile that doesn't produce the error, does that appear to affect the behavior of the graphical login screen in any way, when you try to log in?
–
Eliah KaganMay 2 at 18:41

I had this problem, and I pulled out the shotgun. I had another sudo enabled account that I logged into. I found that I could 'su' to the affected account, so terminal mode was fine. BUT, I wanted it fixed now, so:

I moved all files out of the home directory of the bad account to /home/store (store was JUST a directory, NOT a home directory for a user).