Why are we appending to a form twice?