add chekLocalStorage function