Ensured search isn't triggered by users that aren't logged in