Replace credentials