replaced post.new with instance variable in the view