improved form sample
bug fix for checked form elements