added checking for missing http-post fields