Please store `account_class` with `account_id` in the session. Fix `login_from_session` method to handle also facebook accounts.