Changed submit() to submitForm() and changed watchdog calls to use the logger.