Fix incorrect assignment style
Reset credentials if expired
Add global quiet option