only do checkbox in form if the name prop is set