add creating cookie with email after user logs in