fix bugs: valid forms, cookieaccept