Medical students’ perceptions and motivations during the COVID-19 pandemic