Make attendance form work