Add button in result/edit page

- Add a conditional button in edit if there is files
- Add error checking in submission_controller.