[#95] refactored logout  method to handle session[:account_class]