I was faced with such a problem tonight. It had just booted to the terminal and asked me for username, password. I have solved the problem by installing some updates and removing Xauthority.
But I did not understand the source of this problem and i just want to learn how to avoid it next time.