Login with json response for mobile applications