Replace credentials.