Only shows user search if logged in, redirects to home when logging in