Something went awry

Deleted the whole submit function. Starting from scratch.