Add validation to lesson form