Authlogic saves users with blank password.

Hi, i've got some troubles using Authlogic:
i generated users database, created the first user which will be
superadmin(can't be delete and can't be modified by another user).
Then to optimize my application, i delete show method and route, add
and remove some part of rails code in my controllers/views files i
don't need anymore. And now, i can create/update user, but the
password i write isn't saved in the database. The fields
crypted_password and password_salt are blank.
This is my usercontroller:

def create
    @user =[:user])
      redirect_to admin_users_url, :notice => "Successfully created
      render :action => 'new'

def update
    if params[:id] != 1 or == 1
      @user = User.find_by_id(params[:id])
      if @user.update_attributes(params[:user])
        redirect_to admin_users_url, :notice => "Successfully updated
        render :action => 'edit'

I used find_by_id because find(params[:id]) is calling a Postgresql
and HTTP500 Error:
User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" =
  CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1
  User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id"
= $1 LIMIT 1 [["id", "11"]]
PGError: ERREUR: le plan en cache ne doit pas modifier le type en
: SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1
Completed 500 Internal Server Error in 81ms

My user model:
class User < ActiveRecord::Base
  attr_accessor :password, :password_confirmation

Thanks for any help.

Ok, just fixed the issue:
in my model the right syntax was "attr_accessible", everything works
fine now.