cookieform.html and minor code corrections