fixed login localstorage issue