It sounds like it is just a video issue. Can you still log in via ssh
or serial console?
What was your method of installing CUDA? If the wrong version were installed it might break the video driver, which in turn would cause the repeated attempt to start the GUI, fail, and then try again over and over.
This might also be complicated by any kid of auto login. Is your user set for auto login?