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

Actually, I've not added a test to cover when libshadow isn't available since that's already tested in `useradd_spec.rb`. Should I duplicate the test?