Added error message passing via flashdata