public bool Register(String nickname, int groupID, string password) { if (!UserHandler.isValid(nickname, groupID)) //details of registration was not valid - will not register// { Logger.Instance.Error("Register info was not valid"); return(false); } else { UserPL exsist = conn.GetUser(groupID, nickname); if (exsist != null) { Logger.Instance.Info("User:"******" already exsist"); return(false); } else { Boolean ans = conn.Register(groupID, nickname, password); saver.SaveUsers(this.userList); //persisting registered users data// Logger.Instance.Info("User: "******" registered successfully"); return(ans); } } }