public ActionResult EditUserInfo(int id, UserProfile user)
        {
            try
            {
                var newUser = db.UserProfile.Find(id);
                UpdateModel(newUser);
                db.SaveChanges();
                return RedirectToAction("UsersInDatabase");

            }
            catch
            {
                ModelState.AddModelError("", "");
                return View();
            }
        }
        public ActionResult EditAccountInfo(UserProfile user)
        {
            try
            {
                var id = WebSecurity.CurrentUserId;
                var user2 = db.UserProfile.FirstOrDefault(u => u.UserId == id);
                UpdateModel(user2);
                db.SaveChanges();

                return RedirectToAction("MyProfile");
            }
            catch
            {
                ModelState.AddModelError("", "Edit Failure, see inner exception");
                return View();
            }
        }