-Error flash messages fixed