Add the search view and fix the devise for user cannot register