replace authlogic with devise