Fixed login and group problems