use loginErrorMessageI to send a json response