worked on authlogic in the application_controller.rb