store username in cookie