Adding validation to dropdown changes