How to limit the number of options selected?