Login support for 10.21 ~ 10.22

Not tested, but feel free to test it !