add has_error to admin