Add readonly rules for widgets
Report layername when form is invalid