Use a json response for logins