log in/out, store username in local storage