Updated validation logic for select elements for Issue #42

Updated validation logic to check the value of [select] elements instead
of checking the selectedIndex. In some cases, the first select option is
not an "empty" value-less option, so checking selectedIndex is stupid.
This was raised in Issue #42.