Fixed /submitdata to parse request correctly