Fixed the validation of the element in selectOption

Checkboxes are not allowed in this method.
Closes #135