add proper headers on form post