Thanks god I solved it!!! While exiting from /etc/lightdm/lightdm.conf I pressed inadvertently option+x instead control+x and I added “†” in the file without realising it. Thank you guys for helping me out