use loginErrorMessageI to send a json response
Merge pull request #637 from yesodweb/json-auth

use loginErrorMessageI to send a json response