simplifying usage of PasswordCredentials and aligning with the getInstance() pattern used elsewhere in the API