public ActionResult Create(Customer customer)
        {
            try
            {
                var custInfo = CustomerDB.GetCustomerInfo(customer.UserName);

                // check to see if the username already exists
                if (custInfo != null)
                {
                    ViewBag.usertaken = "User ID Already Exist";
                    return(View());
                }

                else
                {
                    if (customer.CustEmail == null)
                    {
                        customer.CustEmail = "";
                    }
                    if (customer.CustBusPhone == null)
                    {
                        customer.CustBusPhone = "";
                    }
                    customer.Password = Crypto.Hash(customer.Password);
                    CustomerDB.CustomerRegister(customer);

                    return(RedirectToAction("Login"));
                }
            }
            catch
            {
                return(View());
            }
        }