bugfix:
1.fix a bug where would incorrectly perform user identity check during
  search user in accout views.py;
2.fix a bug where user will accidentally be redirected to login.html
  because wrong response code is returned.