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
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.