dealing with errors via add_error(), which is throwing exception for time being