Manually adds a student to the lecture attendance, with role checking, input validation, async fetch calls, and error handling.

When student insertion fails