added functions to group login window

write, read groupdata, addgroup, and group exists functions