Save state only after change
Added example credentials