Improve error message for invalid credentials in CSM