Added validation methods lecture model
Added get new lecture code method to lecture model
Added  the end lecture method to lecture model