Fix for returning errors if creds are bad.