Updated logic so that last submission time is only recorded when you submit for grading