create a partial for errors that is placed in the 'edit.html.erb's
add validations to the lesson class.
edit the update method to match the required validations
change the order of the routes.
add the partial correctly-fix the syntax error.