Adding post request function