Group and Login history tables working