added error validation for dropdown-list