login with local storage finished