added localhost api adr, also added basic auth for username pw and send it off to server