Patch the form validation for creation of module.

a condition has been added to prevent users from inserting a "blank"
prerequisite.