adding dropdown sanitization function