Unit CRUD completed, correct the search flash message and complete logout