Updated handle_post function

It is doing the same as handle_get for now