I'm seeing the login screen every time my pi boots up. At first it didn't need any password but after 3-4 boots, pi asks for a password. When I write the password displays the same screen again. I don't know what to do now :/
I'm using Raspbian on Raspberry Pi 3. Haven't installed tightvncserver as I saw other questions here. Screenshot of the screen below.
I tried logging in from command line. I press Ctrl+Alt+F6 to get into command line and login from there.
After login I write
startx, the screen turns black, and then it's showing the error:
xinit: giving up xinit: unable to connect to X server: Connection refused xinit: server error