Added form validation for updating/adding teaching materials.
Merge pull request #268 from Junkern/issue#205

Added form validation for updating/adding teaching materials.