the problem is much more bigger then what the topic says. I am new with Linux and was watching a tutorial for certain commands... and I learned about this command "startx". What this command does is "launch a GUI for your terminal or tty". the command was used in older versions of linux where the startup screen is usually a command line interface.
Curious to learn, I tried the command on my terminal with sudo (coz it wasnt running plainly). what happened was that it opened a GUI using terminal for my root. initially I was unable to go to my home screen but then I learned that it was on my tty7. I guess, GUESS, I later closed the process using "Ctrl+C" and turned my PC off. when I opened it in the morning it wouldn't open using my password. but I later realized that it won't open my GUI using login screen. Any idea about the issue??