removed aws key and wrote post request method