Adding validation for select