Removes invalid current_user object
This cannot be put here due to unauthenticated users being able to search, just not view.