better login redirection and keyword search