added some code security to the attendance taker