<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def on_pick_button_pressed(cls, ev):
 """ Callback called when the user press the button for accepting the picked author. This element calls validations, before accepting the choice. """

        cls.hide_errors()

        selected_code = cls._pick_selected_option()
        if not selected_code:
            cls.select_el.style.border = "2px solid red"
            return

        cls.selected_code = selected_code
        cls.code = str(selected_code)
        cls.original_author_el.value = cls.code_to_data[selected_code].get(
            "alt_name",
            str(cls.code_to_data[selected_code])
        )
        cls.hide()