fix loginController return Json format and the query bug: contain the
user's books