Flash error appears if no post is founded