            $input['password'] = <PASSWORD>($input['password']);
        }
        
        $this->validate($request, $validateRules);
                        
        $user->update($input);        
        
        if(!$request->input('password')){            
            $user->syncRoles($request->input('roles')); 
        }
        
        return response()->json(['success'=>'ok']);

    }