Allow checkbox without an assigned value attribute

Changes from @wtfiwtz with tests now added