validation fix for select and textarea.