Working version. I need to soft code the url in the credentials