Store the username in a cookie and use it to validate the session