How to set a max & min number of selection on checkbox?