bug fix

fix login bug and search bug