form: added ability to show alerts when error exists