made POST request work in client