Add flash messages for every functionality.