Added a little of code to handle POST