Added group validation

now groups should actually go into the database.