created post method handler