fixed checkbox problem, the checkbox value is never empty or null and therefore checkboxes should be set to checked before the input.value is evaluated