Change user controller to return json