append security errors to ctx