Since I had problems with unity-greeter I had installed lightdm-gtk-greeter and it keeps looping into the login screen. 14.04 ubuntu
I have several solutions: removing .Xauthority file, reinstalling lightdm-gtk-greeter, ubuntu-desktop but no success. When I remove the .Xauthority file and do lightdm restart the .Xauthority file is created again.
Here are the log files from /var/log/lightdm/lightdm.log and /var/log/lightdm/x-0-greeter.log
Please need your help to login.