validation for select