Displaying a flash message when the user's input is incorrect