add support for string input for username and password in addition to
byte arrays