add login filter & bug fix