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
UNSOLVED Magic Mirror not booting up
Troubleshooting • • Lorenzo_Zappa
UNSOLVED Magic Mirror on the RPi1
Troubleshooting • • MMRPi1