Creates new objects after submit and adds to array.