check loalstorage is ok