saving and reading settings for apikey and username