register to lesson

funtions to check if lesson id exists
before registering a student to a lesson