Minor refactoring on santize check
Using html5 functionality for select form