write username to localstorage