Added validations for users and lessons.