fix logged in search
typo
add logging