fixed localstorage login, hopefully for the last time...