fixed credential error and warning.