added validation for assignment total