Remove unneeded code from attendance register