Locked out because of super user running startx

Ok I did stuff in the terminal and then the whole desktop except for the wallpaper disappeared. And because of my stupidity I ran the startx on root. Then when it did not work. I shut it down. When at start again on entering password I get black and back to login prompt. It is LUbuntu 18.04.