To fix the issue, I installed Gnome desktop and logged without any problem in using the Gnome Desktop environment. Since the default desktop environment crashes and I could not get a terminal window to do anything, I had to exit to the console to do the installation. The steps are as follows,
You should be in without any problem.
1. Press CTRL-ALT-F1 to switch to the console screen 2. Log in on the console screen 3. Install Gnome desktop environment, by running $ sudo apt-get install gnome 4. Kill and restart X or simply reboot the machine, by running $ sudo reboot 5. When the Graphical Login screen appears, click on the little icon to the right of the user name, and choose any of Gnome desktop environment, (Gnome Classic, Gnome Classic ...) 6. Then log in.