worked on the Post request handler