got post method working and returning the submitted string