The two structures you labeled "major" both look fine to me. I am not sure what you mean regarding the lone pair being stationed. Is there some reason that nitrogen would not follow the normal rules regarding hybridization?
Sorry for the late reply. My doubt was about how it hybridates. So what i figured out was that it forms 3 sp
2 orbitals, two of them with one electron, and one with a pair of electrons. Then there's a p orbital with a single electron. So it uses the p and one of the two sp
2 orbitals with a single electron to form the double bond with the oxygen, the other hybrid orbital with a single electron to form a bond with the carbon, and the last hybrid orbital with two electrons is used to form a coordinate bond with the oxygen which is connected to the nitrogen with only one bond. Is that right? And if so, does the nitrogen always form a coordinate bond when it has 4 bonds and no lone pair?