changed display method for form errors