Added code to store name in cookie. not yet implemented.