Unable to retrieve data using POST