I dont know how come you dont get the login prompt again. press the Ctrl+Alt+f2 key combination.
Login as root
And you can even undo the last command you issued
# apt-get remove nvidia-glx nvidia-kernel-dkms nvidia-xconfig nvidia-settings
Once the command is done running type
hopefully you dont have to re install