logout redirect to im index page
apply mongo condition format in params.search