Fixed issues in authlogic