Tenants view fix. Api and models extended. Login.