Add code to make a form read-only; improve the logging config