Fix communication, add error msgs and use POST instead of PUT