Nitrogen has the electronic configuration and not
which is determined by
Aufbau's Principle
Pauli's exclusion principle
Hund's rule
Uncertainty Principle
The above is determined by Hund's rule of maximum multiplicity which says that pairing will not start until and unless all the degenerate orbitals are singly occupied first.