Add username and password to xml string