add sesskey check for taking attendance and do some cleaning on raw form vars