that is exactly how it works. Where we need to mention that login and adduser are the same thing.

What happen is you login e.g. as admin and then you can create new user against the private repository, because we use the first user credentials (admin) to pass the protection and then create the user we wanted. Afterwards you will become the just created user.