Added Email restriction functionality, allowing a teacher to restrict their module to users with a certain email domain.