You can use this function to make the list of languages unique. Currently users can select the same language twice.