validation for the select form