You might want to check the "useradd/usermod" options with the "useradd/usermod --help" command. If you want to add a password the flag would be "-p", and this argument expects the password to be encrypted. You can generate this encrypted password with the command: "openssl passwd -1 <password_to_hash_encrypt>", for example.
Now, I've just noticed that we are referring to the 'root' user, which already exists! In this case, you just need to change its password, and you can use the 'usermod' command with the '-p' flag. Here are the two scenarios:
# Case for adding a new user with password
EXTRA_USERS_PARAMS:append = "\