protected async void UpdateForm()
 {
     if (Request["isUpdate"] == "true")
     {
         string newpass = Request["txt_newpass"];
         string oldpass = Request["txt_oldpass"];
         if (!string.IsNullOrEmpty(newpass))
         {
             if (!string.IsNullOrEmpty(oldpass))
             {
                 if (newpass == Request["txt_newpass2"])
                 {
                     store = new UserStore<User>(new ApplicationDbContext());
                     manager = new Microsoft.AspNet.Identity.UserManager<User>(store);
                     User user1 = manager.FindById(HttpContext.Current.User.Identity.GetUserId());
                     var task = await manager.ChangePasswordAsync(u.Id, oldpass, newpass);
                     if (task.Errors.ToList().Count > 0)
                     {
                         SiteLogic.AddError(task.Errors.ToList()[0]);
                     } else {
                         FormMessage.ShowSuccess(GetLocalResourceObject("err1").ToString());
                     }
                 }
                 else SiteLogic.AddError(GetLocalResourceObject("err2").ToString());
             }
             else SiteLogic.AddError(GetLocalResourceObject("err3").ToString());
         }
         else SiteLogic.AddError(GetLocalResourceObject("err4").ToString());
     }
 }