Login now responds in json.