Added an additional log statement for form errors.