Add logic to update assignments if appropriate

Logic was completed to update assignments if that
assignment name is seen for a particular student.

Add logic to not move forward with an upload if
a file is not selected.

Also fix an error related to the calculation of
current grade.