assign credentials to server.