created controller for posts/new
call the save action when the form is submitted