add basic authentication for client