fix call and show error when no credentials