(PUP-3723) Add new loginclass parameter to user type

Can you add negative tests, i.e. covering what happens if libshadow isn't available, the loginclass method isn't available, and if the logincrlass isn't set?