add group to login method, code for #7