got all features working. Now need to refactor so that it uses the email as the name of the cookie as well as the value