updated the way form errors are customized