fixing select validation