public void CreateAccount(AccountDTO Login) { if (!MatchingEmails(Login.Id, Login.Email)) { if (!MatchingNickName(Login.Id, Login.NickName)) { Login.Password = Convert.CreateHashedString(Login.Password);//not secure, not important right now. Account.Create(Login); return; } else { //throw new Exception("Nickname already taken"); } } else { //throw new Exception("Email is already taken"); } }