LocalStorage validation