Validating multiple checkboxes using javascript