calculator application, cookies and email validation in html