        return redirect()->to("/")->with("message", "Password changed successfully");
       
        
        try{

            $user = new User($this->request->getPost());
            
            $model = new UserModel;

            $model->save($user);
            // if( !$model->save($user)){
            //     return redirect()->back()->with("errors",$this->model->errors())->withInput();
            // }

            $user = $model->findById(($model->getInsertID()));

            $user->activate();

            if($user->usergroup == 'admin') {
                $user->addGroup("user", "admin");
            }else{
                $user->addGroup("user");
            }
        
            return redirect()->to("users")->with("message","User saved.");

        } catch (DatabaseException $e) {
            //dd($e);
            return redirect()->back()->with("errors",$this->model->errors())->withInput();
        }
