show flash message when not access granted fix #2