changed error messages to distinguish between invalid credentials and other connection issues