POST & PUT changed to read request data correctly