perfected eroor flash messages