added error message when editing a module with bad values