Completed the submit exam paper function.