Completed submit functionality, ran all tests