parse request body in /register