show the error message to the user as flash message