Login and adv search fixes