public string CreateLogin(string userName, string password1, string password2)
        {
            string result;

            //Makes sure user name does not exist already
            if (userLoginSQLDAO.CheckIfUserNameExists(userName))
            {
                result = "Username already exists, please try a different one";
            }
            else
            {
                //Makes sure password matches and meets criteria
                if (ValidPassword(password1, password2))
                {
                    userLoginSQLDAO.CreateLogin(userName, password1);
                    result = "Account was succesfully created!";
                }
                else
                {
                    result = "Passwords either do not match or do not fit the criteria, Passwords must be 8 in length, contain one number,one uppercase" +
                             "and one special character";
                }
            }

            return(result);
        }
 public void CreateLoginTest()
 {
     dao.CreateLogin("newUser", "password");
     Assert.AreEqual(true, dao.CheckLogin("newUser", "password"));
     Assert.AreEqual(false, dao.CheckLogin("newuser", "Password"));
 }