validation on select