fixed bug with saving cloud credentials