Two electrons occupying the same orbital are distinguished by
Magnetic quantum number
Azimuthal quantum number
Spin quantum number
Principal quantum number
Spin quantum number can take 2 values: +1/2 or -1/2.
This helps in distinguishing between 2 electrons that occupy the same orbital.