Add proper error message for invalid credentials. Also support error messages for connection and server errors.