Nvidia logo flashes before disconnecting after login on remote desktop - Jetson Nano

Yes it’s connected to an external monitor. But i need a desktop environment through a xrdp. I tried the solution provided here - Issue with xrdp. It did work but with xfce. So I reflashed my Jetson and installed xrdp again but having the same problem.