only display form errors if method is POST