Flash errors when appropriate