Added extra checking of requests in the homework, lectures and modules routes to make sure no bad requests can break or corrupt the system in some way