validation on select input type,done on for the edit form