Submit now returns correct json data