Updates checkboxes code to be consistent

- Updates checkboxes code to be consistent with text input code.