The Password file (.htpasswd) must have users list with encrypted passwords like:
test:dGRkPurkuWmW2
3. Add new user using htpasswd
Example : Create password file and add a new user htpasswd -c /path/to/.htpasswd username
Example : Add to File htpasswd /path/to/.htpasswd username
Example: Print to terminal htpasswd -n username
Comments