modified lectures controller for validations