return json result after login success.