My question involves landlord-tenant law in the State of: New Jersey

I made a previous thread however I have a new question.

If the landlord was never aware of me living in the room, nor did he approve of me living there(obviously),

I signed a contract to live till May but there was no clause for breaking the lease.

Does the landlord not knowing invalidate the contract?

Am I liable for the rent until they find someone?

I signed the contract with a tenant. So I am the subtenant.