Added 1 more function to valdate input into addModuleToRegisteredModule() as well as clean up the code in Bootstrap.php.