How to limit the number of selectable options in a checkbox