fix post parsing
implement register api route