repaire sign in page and localStorage in every page