How to limit the selection of a checkbox?