Fixed issue where Lesson objects were constantly being created on the DAO when the User is a teacher