Handles checkboxes and radio

This version checks the input type for radio buttons and checkboxes. If it is either of those, the "value" of the input is no longer the literal value, but instead it it whether or not the button is 'checked'