javascript validation for single checkbox