session.begin() added to group operation and login