amended validation for select boxes