showing flash messages from errors