changed logic that after signin user is redirected to search page