working register/login/groups/selectedGroup