public function update()
 {
     if (isset($_POST['user']['password']) && empty($_POST['user']['password'])) {
         unset($_POST['user']['password']);
     }
     if (!isset($_POST['v_password'])) {
         unset($_POST['user']['password']);
     }
     if (isset($_POST['user']['password']) && isset($_POST['v_password'])) {
         if ($_POST['user']['password'] != $_POST['v_password']) {
             unset($_POST['user']['password']);
         }
     }
     $this->user = User::update($this->user->id, $_POST['user']);
     if ($this->user->saved) {
         Nimble::flash('notice', 'User information as been updated');
         $this->redirect_to(LoginController::user_url($this->user));
     } else {
         $this->edit();
         $this->render('user/edit.php');
     }
 }